﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="MenuCategory" Object="MenuCategory" InnerID="Request.QueryString['ID']" Validate="True" />
<section data-page="menu_category_edit" data-title="编辑类别" data-lang="<%=ContentLang%>" data-id="<%=Request.QueryString['ID']%>">
	<dl class="path1">
		<dt><span>您的位置：</span><a href="list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">类别列表</a> → <b class="<%=ContentLang%>Font"><%=MenuCategory[Name]%></b></dt>
		<dd>
			<select data-class="<%=ContentLang%>Font" data-ali-widget="combo">
				<ali:List Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<table class="post-table margin2">
				<tr>
					<th width="120">名称：</th>
					<td>
						<input type="text" name="Name" value="<%=MenuCategory[Name]%>" size="60" maxlength="255" class="ali-input ali-input-required <%=ContentLang%>Font">
						<label><input type="checkbox" data-operation="CheckGuid">Guid：</label><input type="text" name="ID" value="<%=MenuCategory[ID]%>" size="40" maxlength="40" disabled class="ali-input ali-disabled">
					</td>
				</tr>
				<tr>
					<th>类别：</th>
					<td>
						<select name="ParentID" data-class="<%=ContentLang%>Font" data-tree="true" data-root="" data-ali-widget="combo">
							<option data-item="" data-parent="" value="">未指定</option>
							<ali:Tree Object="MenuCategory">
								<ali:Record>
									<%If Convert.ToString(ID) == Convert.ToString(MenuCategory[ParentID])%>
										<option data-item="<%=InnerID%>" data-parent="<%=ParentInnerID%>" value="<%=ID%>" selected><%=Name%></option>
									<%Else%>
										<option data-item="<%=InnerID%>" data-parent="<%=ParentInnerID%>" value="<%=ID%>"><%=Name%></option>
									<%EndIf%>
									<%=ChildRecords%>
								</ali:Record>
							</ali:Tree>		
						</select>
					</td>
				</tr>
			</table>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>